type User = {
  name: string;
  age: number;
}

function isAudit(user: User): boolean{
  return user.age >= 18
}

const john: User = {
  name: 'john',
  age: 18
}

// const lucy: User = {
//   name: 'lucy',
//   age: 'unknow'
// }

const bo: boolean = isAudit(john)

console.log("bo ==> ", bo);

// const isLucyAnAdult: string = isAudit(lucy, 'xxxx')
